package com.example.res.controller;

import com.example.res.service.IOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping(value = "/v1/test")
public class TestController {
    @Autowired
    IOrderService orderService;

    @GetMapping("/updateOrderStatus")
    public String updateOrderStatus() {
        log.info("updateOrderStatus reqParam:orderCode:{},userId:{},status:{}");
        return orderService.updateOrder();
    }

}
